/**
 * @license Copyright 2017 Google Inc. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 */

* {
  box-sizing: border-box;
}

:root {
  --header-height: 60px;
  --primary-color: #3367d6;
  --form-color: #333;
  --overlay-offset: 50px;
}

body {
  font-family: "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  color: #555;
  width: 100%;
  margin-top: calc(var(--header-height) + 35px);
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
  width: 100%;
  color: white;
  padding: 15px;
  font-size: 16px;
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28);
  z-index: 1;
}

.notes {
  margin-top: -10px;
  flex-direction: column;
  padding-left: 20px;
  font-size: 12px;
  font-style: italic;
  display: inline-flex;
}

.title {
  font-size: 1.5rem;
}

.dth-select {
  background-image: url(./dropdown_lt_2x.png);
  color: var(--form-color);
  background-color: #fff;
  -webkit-appearance: none;
  border-color: rgba(0, 0, 0, 0.2);
  position: relative;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-left: 4px;
  padding-right: 24px;
  font-size: 12px;
  line-height: 16px;
}

.select-metric {
  padding-left: 24px;
  font-size: 0.9rem;
}

.plot-container.plotly {
  margin: -25px;
}

.dth-button {
  left: 0;
  position: absolute;
  top: 35px;
  cursor: pointer;
  color: var(--primary-color);;
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  padding: 3px 12px;
  font-weight: 600;
  -webkit-appearance: none;
  margin: 0;
  outline: 0;
  height: 24px;
  font-size: 12px;
  line-height: 16px;
  border: 1px solid;
  border-radius: 2px;
}

#overlay {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  background: #e3f2f7;
}

#overlay .close-button {
  position: absolute;
  top: calc(var(--header-height) + 30px);
  left: var(--overlay-offset);;
}

#overlay .chart {
  position: absolute;
  top: calc(var(--header-height) + 100px);
  left: var(--overlay-offset);;
}
